import 'package:wanxiang_app/generated/json/base/json_field.dart';
import 'package:wanxiang_app/generated/json/service_msg_list_entity.g.dart';
import 'dart:convert';
export 'package:wanxiang_app/generated/json/service_msg_list_entity.g.dart';

@JsonSerializable()
class ServiceMsgListEntity {
	@JSONField(name: "Code")
	late int code;
	@JSONField(name: "Data")
	late List<ServiceMsgListData> data;

	ServiceMsgListEntity();

	factory ServiceMsgListEntity.fromJson(Map<String, dynamic> json) => $ServiceMsgListEntityFromJson(json);

	Map<String, dynamic> toJson() => $ServiceMsgListEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class ServiceMsgListData {
	late String id;
	late String account;
	late String nickname;
	@JSONField(name: "is_rest")
	late String isRest;
	late String photo;

	ServiceMsgListData();

	factory ServiceMsgListData.fromJson(Map<String, dynamic> json) => $ServiceMsgListDataFromJson(json);

	Map<String, dynamic> toJson() => $ServiceMsgListDataToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}